package com.test.validatetype;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/12 13:53
 * @Modified By:
 */
public enum Color implements ColorInter{
    RED("红色"){
        @Override
        public String showLight() {
            return ordinal()+"，red";
        }
    },
    GREEN("绿色") {
        @Override
        public String showLight() {
            return ordinal()+"，green";
        }
    },
    BLUE("蓝色") {
        @Override
        public String showLight() {
            return ordinal()+"，blue";
        }
    },
    YELLOW {
        @Override
        public String showLight() {
            return ordinal()+"，yellow";
        }
    };
    public  String light = "白色";

    Color(){
    }
    Color(String light) {
        this.light = light;
    }

    @Override
    public String colorLight() {
        return this.ordinal()+"--"+this.light;
    }

    public abstract String showLight();

//    public abstract String aaa();

}
